﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="bannerList.ascx.cs" Inherits="Com.Web.coffinegurunaru.manager.banner.bannerList" %>
<%@ Import Namespace="Com.Library.DB.Banner" %>
<table cellpadding="0" cellspacing="1" border="0" style="background-color:Olive">
<tr style="background-color:#eeeeee; height:30px; text-align:center;">
	<td style="width:100px;">번호</td>
	<td style="width:100px;">이미지</td>
	<td style="width:300px;">링크</td>
	<td style="width:100px;">링크타입</td>
	<td style="width:150px;">등록일</td>
	<td style="width:100px;">등록자</td>
	<td style="width:120px;"> - </td>
</tr>

<% foreach (BannerEntity item in BannerList) { %>
<tr style="background-color:White;" data="{SeqNo:'<%=item.SeqNo %>'}" class="m_BannerInfo_<%=item.SeqNo %>">
	<td align="center"><%=item.SeqNo %></td>
	<td align="center"><img src="<%=item.ImageURL %>" style="width:100px; height:100px;" /></td>
	<td align="center"><%=item.Link %></td>
	<td align="center"><%=item.LinkType.ToString() %></td>
	<td align="center"><%=item.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
	<td align="center"><%=item.ManagerName %></td>
	<td align="center"><input type="button" value="수정" class="m_btModify"/>&nbsp;&nbsp;&nbsp;<input type="button" value="삭제"  class="m_btRemove"/></td>
</tr>
<tr style="background-color:White; display:none; height:100px;" data="{SeqNo:'<%=item.SeqNo %>'}" class="m_BannerModify_<%=item.SeqNo %>">
	<td align="center"><%=item.SeqNo %></td>
	<td align="center"><input type="text" readonly="readonly" value="<%=item.ImageURL %>" class="m_ImageURL" style="width:80px;" /><br /><input type="button" value="파일변경" class="m_ImageUploader" /></td>
	<td align="center"><input type="text" class="m_Link" value="<%=item.Link %>" style="width:250px;"/></td>
	<td align="center"><select class="m_LinkType">
			<option value="1" <%=item.LinkType == CodeLinkType.Self ? "selected='selected'" : "" %>>현재창</option>
			<option value="2" <%=item.LinkType == CodeLinkType.Blank ? "selected='selected'" : "" %>>새로운 창</option>
		</select></td>
	<td align="center"><%=item.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
	<td align="center"><%=item.ManagerName %></td>
	<td align="center"><input type="button" value="확인" class="m_ModifyConfirm" />&nbsp;&nbsp;&nbsp;<input type="button" value="취소" class="m_ModifyCancel" /></td>
</tr>

<%} %>
</table>